package com.logos;

import com.logos.dao.CollectionDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForDICollection {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        CollectionDao collectionDao = (CollectionDao) ctx.getBean("collectionDao");
        collectionDao.save();
    }
}
